package com.study.service.HRservice;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.study.model.jdao.HRjdao.InterviewDao;
import com.study.model.pojo.HRpojo.InterviewTab;

@Service
public class InterviewService {

	@Autowired
	InterviewDao interDao;

	/**
	 * 查询面试所有信息
	 * @return
	 */
	public List<InterviewTab> findAll(){
		
		return (List<InterviewTab>) interDao.findAll();
		
	}
	
	/**
	 * 新增面试记录
	 * @param intertab
	 * @return
	 */
	public InterviewTab addInterview(InterviewTab intertab){
		return interDao.save(intertab);
	}
	
}
